package yf.mall.enums;

import lombok.Getter;


/**
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun May 24 14:16:14 CST 2020
 */
@Getter
public enum AccountRecordTypeEnum {


                   CASH(0,"代金券")
                                    ,
                
            
                   POINT(1,"积分")
                                    ,
                
            
                   COUPON(2,"优惠券")
                                    ,
                
            
                   VOUCHER(3,"换购券")
                                    ,
                
            
                   EXP(4,"经验值")
                                    ,
                
            
                   GFIT(5,"捐赠"),

                   CLEAR(6,"清货券"),

                 WELFARE(7,"公益金")

                                ;
            
        
        int index;
        String value;

    AccountRecordTypeEnum(int index,String value) {
        this.index = index;
        this.value = value;
        }

    public static String indexOf(int idx) {
        return AccountRecordTypeEnum.values()[idx].getValue();
    }

}
